
interface IUser {
    name: string
    age: number
    setName(name: string | number): void
}


class User implements IUser {

    name: string
    age: number

    constructor(name: string, age: number) {
        this.name = name
        this.age = age

        this.name = "1"
    }

    setName(name: string) {
        this.name = String(name)
    }
}

class Admin extends User {

    status = { running: 0 } as const
    constructor(name: string, age: number) {
        super(name, age)
    }

    override setName(name: string) {
        this.name = name
    }
}
 
